package com.yonyougov.devops.cruxcisupport.harbor.project;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping(value = "/api/v2/harbor")
@Slf4j
public class HarborProjectController {
    @Autowired
    private HarborProjectService harborProjectService;

    @GetMapping(value = "/projects")
    public List<HarborProject> getProjects(){
        return harborProjectService.getProjects();
    }
}
